package com.music.service.basic;

import com.music.dto.basic.UserDTO;
import com.music.dto.utils.TableReqDTO;
import com.music.dto.utils.TableRspDTO;


public interface UserService {
    /**
     * @Description: 获取表格数据
     * @Author: dy
     * @Date: 2021/10/28
     */
    TableRspDTO list4Table(TableReqDTO tableReqDTO) throws Exception;

    /**
     * @Description: 新增记录
     * @Author: dy
     * @Date: 2021/10/28
     */
    Integer add(Long enterpriseId, UserDTO userDTO) throws Exception;

    /**
     * @Description: 更新记录
     * @Author: dy
     * @Date: 2021/10/28
     */
    Integer update(UserDTO userDTO) throws Exception;

    /**
     * @Description: 删除记录
     * @Author: dy
     * @Date: 2021/10/28
     */
    Integer remove(String userIds) throws Exception;

    /**
     * @Description: 重置用户密码
     * @Author: dy
     * @Date: 2021/10/28
     */
    Integer resetPwd(Long userId, String loginPwd) throws Exception;

    /**
     * @Description: 登录验证
     * @Author: dy
     * @Date: 2021/10/28
     */
    UserDTO loginCheck(String loginName) throws Exception;

    /**
     * @Description: 根据UserId获取用户信息
     * @Author: dy
     * @Date: 2021/10/28
     */
    UserDTO getByUserId(Long userId) throws Exception;

    /**
     * @Description: 修改头像
     * @Author: hbh
     * @Date: 2021/10/28
     */
    Integer changeImage(Long userId,String imageUrl) throws Exception;
}
